<template>
    <div>
        <h1 @click="num++">{{ num }}</h1>
        

    </div>
</template>

<script setup>
import { onMounted,onUpdated, ref } from 'vue';

onMounted(()=>{
    console.log('我是onMounted,我被执行了');
})
onUpdated(()=>{
    console.log('我是onUpdated');
})
const num = ref(0)

</script>

<style>
h1{
    color: blue;
}

</style>